<?php

// $Id$

require_once(TANGRA_MAIN_DIR.'form/fields/file/form_field_file_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/guardable_form_view.class.php');


class Attachment_Upload_Form_View extends Guardable_Form_View {
	function __construct(Form &$form) {
		parent::__construct($form);

		$f_attachment = $form->get_field('attachment');
		$f_attachment_view = new Form_Field_File_View($form->get_name().'_'.$f_attachment->get_name(), $f_attachment);
		$this->add_field_view('attachment', $f_attachment_view);
	}
}